
//无数据
const NotFoundCom = resolve => {
    require.ensure(['../NotFoundCom'], () => {
        resolve(require('../NotFoundCom'))
    })
}
//供应链仓库
const scmWarehouseCom = resolve => {
    require.ensure(['./config/scmWarehouse'], () => {
        resolve(require('./config/scmWarehouse'))
    })
}
//采购车辆导入
const scmPurchaseImpCom = resolve => {
    require.ensure(['./config/scmPurchaseImp'], () => {
        resolve(require('./config/scmPurchaseImp'))
    })
}
//采购车辆管理
const scmPurchaseCom = resolve => {
    require.ensure(['./config/scmPurchase'], () => {
        resolve(require('./config/scmPurchase'))
    })
}
//采购发票管理
const scmInvoiceCom = resolve => {
    require.ensure(['./config/scmInvoice'], () => {
        resolve(require('./config/scmInvoice'))
    })
}
//采购发票管理
const saleOrderCom = resolve => {
    require.ensure(['./config/saleOrder'], () => {
        resolve(require('./config/saleOrder'))
    })
}
//供应链销售车辆管理
const scmSaleCom = resolve => {
    require.ensure(['./config/scmSale'], () => {
        resolve(require('./config/scmSale'))
    })
}
//供应链车辆外观维护
const scmCarAppearanceCom = resolve => {
    require.ensure(['./config/scmCarAppearance'], () => {
        resolve(require('./config/scmCarAppearance'))
    })
}
//供应链车辆内饰维护
const scmCarInteriorCom = resolve => {
    require.ensure(['./config/scmCarInterior'], () => {
        resolve(require('./config/scmCarInterior'))
    })
}
//供应链入库管理-实物入库
const scmEnterWarehouseCom = resolve => {
    require.ensure(['./config/scmEnterWarehouse'], () => {
        resolve(require('./config/scmEnterWarehouse'))
    })
}
//供应链入库管理-暂估入库财务
const scmEnterWarehouseFinanceCom = resolve => {
    require.ensure(['./config/scmEnterWarehouseFinance'], () => {
        resolve(require('./config/scmEnterWarehouseFinance'))
    })
}
//盘点管理
const scmInventoryCom = resolve => {
    require.ensure(['./config/scmInventory'], () => {
        resolve(require('./config/scmInventory'))
    })
}
//调拨管理
const scmTransferCom = resolve => {
    require.ensure(['./config/scmTransfer'], () => {
        resolve(require('./config/scmTransfer'))
    })
}
//出库管理
const scmOutWarehouseCom = resolve => {
    require.ensure(['./config/scmOutWarehouse'], () => {
        resolve(require('./config/scmOutWarehouse'))
    })
}
//待入库车辆
const scmPendingCarCom = resolve => {
    require.ensure(['./config/scmPendingCar'], () => {
        resolve(require('./config/scmPendingCar'))
    })
}
//供应月结
const scmMonthlyCom = resolve => {
    require.ensure(['./monthly/scmMonthly'], () => {
        resolve(require('./monthly/scmMonthly'))
    })
}
//月末差异表
const monthDifferenceCom = resolve => {
    require.ensure(['./monthly/monthDifference'], () => {
        resolve(require('./monthly/monthDifference'))
    })
}
//调拨审批
const scmTransferShenopCom = resolve => {
    require.ensure(['./config/scmTransferShenop'], () => {
        resolve(require('./config/scmTransferShenop'))
    })
}
//调拨查询
const scmFindCom = resolve => {
    require.ensure(['./config/scmFind'], () => {
        resolve(require('./config/scmFind'))
    })
}
//月末对账表
const scmMonthReportCom = resolve => {
    require.ensure(['./config/scmMonthReport'], () => {
        resolve(require('./config/scmMonthReport'))
    })
}
//库存管理
const scmRepertoryCom = resolve => {
    require.ensure(['./config/scmRepertory'], () => {
        resolve(require('./config/scmRepertory'))
    })
}
//库存报表管理
const scmRepertoryReportCom = resolve => {
    require.ensure(['./config/scmRepertoryReport'], () => {
        resolve(require('./config/scmRepertoryReport'))
    })
}
//历史车辆管理
const scmHistoryCarCom = resolve => {
    require.ensure(['./config/scmHistoryCar'], () => {
        resolve(require('./config/scmHistoryCar'))
    })
}
//日报
const scmStatementDailyCom = resolve => {
    require.ensure(['./config/scmStatementDaily'], () => {
        resolve(require('./config/scmStatementDaily'))
    })
}
//月报
const scmStatementMonthlyCom = resolve => {
    require.ensure(['./config/scmStatementMonthly'], () => {
        resolve(require('./config/scmStatementMonthly'))
    })
}
//月报实物与财务差异
const scmMonthlyDefferCom = resolve => {
    require.ensure(['./config/scmMonthlyDeffer'], () => {
        resolve(require('./config/scmMonthlyDeffer'))
    })
}
//暂估价格管理
const scmEstimatedPriceCom = resolve => {
    require.ensure(['./config/scmEstimatedPrice'], () => {
        resolve(require('./config/scmEstimatedPrice'))
    })
}
//临时出库监管
const scmOutTemporaryCom = resolve => {
    require.ensure(['./config/scmOutTemporary'], () => {
        resolve(require('./config/scmOutTemporary'))
    })
}
//已出库车辆查询
const scmOutCarCom = resolve => {
    require.ensure(['./config/scmOutCar'], () => {
        resolve(require('./config/scmOutCar'))
    })
}
//调拨流程设置
const scmTransferSetCom = resolve => {
    require.ensure(['./config/scmTransferSet'], () => {
        resolve(require('./config/scmTransferSet'))
    })
}
//调拨打印-财务专属
const scmTransferFinanceCom = resolve => {
    require.ensure(['./config/scmTransferFinance'], () => {
        resolve(require('./config/scmTransferFinance'))
    })
}
//调拨历史查询
const scmWarningSetUpCom = resolve => {
    require.ensure(['./config/scmWarningSetUp'], () => {
        resolve(require('./config/scmWarningSetUp'))
    })
}
//预警报表
const scmReportformCom = resolve => {
    require.ensure(['./config/scmReportform'], () => {
        resolve(require('./config/scmReportform'))
    })
}
//客商维护
const scmCustomersCom = resolve => {
    require.ensure(['./config/scmCustomers'], () => {
        resolve(require('./config/scmCustomers'))
    })
}

//驾驶舱-内勤
const scmHomeCom = resolve => {
    require.ensure(['./config/scmHome'], () => {
        resolve(require('./config/scmHome'))
    })
}
//驾驶舱-财务
const scmHomeFinCom = resolve => {
    require.ensure(['./config/scmHomeFin'], () => {
        resolve(require('./config/scmHomeFin'))
    })
}
//驾驶舱-库管
const scmHomeHouseCom = resolve => {
    require.ensure(['./config/scmHomeHouse'], () => {
        resolve(require('./config/scmHomeHouse'))
    })
}
//库存初始化
const scmInitImpCom = resolve => {
    require.ensure(['./config/scmInitImp'], () => {
        resolve(require('./config/scmInitImp'))
    })
}
//新老系统对账表scmReconciliation.vue
const scmReconciliationCom = resolve => {
    require.ensure(['./config/scmReconciliation'], () => {
        resolve(require('./config/scmReconciliation'))
    })
}
//库存统计表
const scmStockReportCom = resolve => {
    require.ensure(['./config/scmStockReport'], () => {
        resolve(require('./config/scmStockReport'))
    })
}
//import NotFoundCom from '../NotFoundCom'
//
////供应链仓库
//import scmWarehouseCom from './config/scmWarehouse'
////采购车辆导入
//import scmPurchaseImpCom from './config/scmPurchaseImp'
////采购车辆管理
//import scmPurchaseCom from './config/scmPurchase'
////采购发票管理
//import scmInvoiceCom from './config/scmInvoice'
////销售单管理
//import saleOrderCom from './config/saleOrder'
////供应链销售车辆管理
//import scmSaleCom from './config/scmSale'
////供应链车辆外观维护
//import scmCarAppearanceCom from './config/scmCarAppearance'
////供应链车辆内饰维护
//import scmCarInteriorCom from './config/scmCarInterior'
////供应链入库管理-实物入库
//import scmEnterWarehouseCom from './config/scmEnterWarehouse'
////供应链入库管理-暂估入库财务
//import scmEnterWarehouseFinanceCom from './config/scmEnterWarehouseFinance'
////盘点管理
//import scmInventoryCom from './config/scmInventory'
////调拨管理
//import scmTransferCom from './config/scmTransfer'
////出库管理
//import scmOutWarehouseCom from './config/scmOutWarehouse'
////待入库车辆
//import scmPendingCarCom from './config/scmPendingCar'
////供应月结
//import scmMonthlyCom from './monthly/scmMonthly'
////月末差异表
//import monthDifferenceCom from './monthly/monthDifference'
////调拨审批
//import scmTransferShenopCom from './config/scmTransferShenop'
////调拨查询
//import scmFindCom from './config/scmFind'
////月末对账表
//import scmMonthReportCom from './config/scmMonthReport'
//
////库存管理
//import scmRepertoryCom from './config/scmRepertory'
////库存报表管理
//import scmRepertoryReportCom from './config/scmRepertoryReport'
//
////历史车辆管理
//import scmHistoryCarCom from './config/scmHistoryCar'
//
////日报
//import scmStatementDailyCom from './config/scmStatementDaily'
//
////月报 
//import scmStatementMonthlyCom from './config/scmStatementMonthly'
//
////月报实物与财务差异
//import scmMonthlyDefferCom from './config/scmMonthlyDeffer'
////暂估价格管理
//import scmEstimatedPriceCom from './config/scmEstimatedPrice'
//
////临时出库监管
//import scmOutTemporaryCom from './config/scmOutTemporary'
////调拨流程设置
//import scmTransferSetCom from './config/scmTransferSet'
////调拨打印-财务专属
//import scmTransferFinanceCom from './config/scmTransferFinance'
////调拨历史查询
////import scmFindCom from './config/scmFind'
//import scmWarningSetUpCom from './config/scmWarningSetUp'
//预警报表
//import scmReportformCom from './config/scmReportform'
// 空组件， 标明路径跳转
import BaseCom from '../BaseCom'


// 定义子模块路由
const scmRoutes = [{
    path: 'scm',
    component: BaseCom,
    children: [
        //仓库
        {
            path: 'scmWarehouse',
            component: scmWarehouseCom
        },
        //采购车辆导入
        {
            path: 'scmPurchaseImp',
            component: scmPurchaseImpCom
        },
        //采购车辆管理
        {
            path: 'scmPurchase',
            component: scmPurchaseCom
        },
        //采购发票管理
        {
            path: 'scmInvoice',
            component: scmInvoiceCom
        },
        //销售单管理
        {
            path: 'saleOrder',
            component: saleOrderCom
        },
		//销售车辆
		 {
            path: 'scmSale',
            component: scmSaleCom
        },
		//车辆外观维护
        {
            path: 'scmCarAppearance',
            component: scmCarAppearanceCom
        },
		//车辆内饰维护
        {
            path: 'scmCarInterior',
            component: scmCarInteriorCom
        },
		//入库管理
        {
            path: 'scmEnterWarehouse',
            component: scmEnterWarehouseCom
        },
        //入库管理-财务
        {
            path: 'scmEnterWarehouseFinance',
            component: scmEnterWarehouseFinanceCom
        },
        //盘点管理
        {
            path: 'scmInventory',
            component: scmInventoryCom
        },
        //调拨管理
        {
            path: 'scmTransfer',
            component: scmTransferCom
        },
         //调拨审批
        {
            path: 'scmTransferShenop',
            component: scmTransferShenopCom
        },
        //调拨查询
        {
        	path: 'scmFind',
        	component: scmFindCom
        },
        //出库管理
        {
            path: 'scmOutWarehouse',
            component: scmOutWarehouseCom
        },
        //待入库车辆管理
        {
            path: 'scmPendingCar',
            component: scmPendingCarCom
        },
       	//月结
		{
			path: 'scmMonthly',
			component: scmMonthlyCom
		},
		//月末差异表
		{
			path: 'monthDifference',
			component: monthDifferenceCom
		},
		//库存管理
		{
			path: 'scmRepertory',
			component: scmRepertoryCom
		},
		//库存报表管理
		{
			path: 'scmRepertoryReport',
			component: scmRepertoryReportCom
		},
		
		//暂估价格管理
		{
			path: 'scmEstimatedPrice',
			component: scmEstimatedPriceCom
		},
		//临时出库管理scmOutTemporary
		{
			path: 'scmOutTemporary',
			component: scmOutTemporaryCom
		},//临时出库管理scmOutTemporary
		{
			path: 'scmOutCar',
			component: scmOutCarCom
		},
		//调拨流程设置scmTransferSet
		{
			path: 'scmTransferSet',
			component: scmTransferSetCom
		},
		//历史车辆管理
		{
			path:'scmHistoryCar',
			component:scmHistoryCarCom
		},
		//预警设置报表
		{
			path:'scmReportform',
			component:scmReportformCom
		},
		//预警设置
		{
			path:'scmWarningSetUp',
			component:scmWarningSetUpCom
		},
		//日报
		{
			path:'scmStatementDaily',
			component:scmStatementDailyCom
		},
		//月报
		{
			path:'scmStatementMonthly',
			component:scmStatementMonthlyCom
		},
		//月报实物与财务差异
		{
			path:'scmMonthlyDeffer',
			component:scmMonthlyDefferCom
		},
		//月末对账表
		{
			path:'scmMonthReport',
			component:scmMonthReportCom
		},
		//调拨打印-财务专属
		{
			path:'scmTransferFinance',
			component:scmTransferFinanceCom
		},
		//调拨打印-财务专属
		{
			path:'scmCustomers',
			component:scmCustomersCom
		},
		
		//供应链驾内勤
		{
			path:'scmHome',
			component:scmHomeCom
		},
		//供应链驾财务
		{
			path:'scmHomeFin',
			component:scmHomeFinCom
		},
		//供应链驾、
		{
			path:'scmHomeHouse',
			component:scmHomeHouseCom
		},
		//库存初始化scmInit
		{
			path:'scmInitImp',
			component:scmInitImpCom
		},
		//新老系统对账表
		{
			path:'scmReconciliation',
			component:scmReconciliationCom
		},
		//润华汽车库存统计表scmStockReport
		{
			path:'scmStockReport',
			component:scmStockReportCom
		},
    ]

}]
export default scmRoutes